//
//  CPointUtil.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 1/30/15.
//
//

#ifndef __NinjaTurtle__CPointUtil__
#define __NinjaTurtle__CPointUtil__

#include <stdio.h>
#include "cocos2d.h"
#include "Box2d/Box2d.h"
#include "../support/support.h"

using namespace std;
USING_NS_CC;

class Body;
class RectBody;
class ArcBody;

class CPointUtil {
public:
    static bool isPointInRectangle(Point point, Point rectPosition, float width, float height);
    static bool b2Interact(RectBody* body1, RectBody* body2);
    static void checkLimit(RectBody* owner, RectBody* target, TouchDirection& touchDirection, float& limitValue);
};

#endif /* defined(__NinjaTurtle__CPointUtil__) */
